
    <form method="post" class="form-horizontal J_ajaxForm_tiaofang" action="{:U('tiaofang')}">
        <div class="tab-content">
            <input type="hidden"  name="id" value="{:I('get.id')}"   />


            <div class="form-group">
                <label class="col-sm-2 control-label "> 新房间 </label>
                <div class="col-sm-10">


                    <select class="input-large  selectpicker"  name="room_id" title="请选择" data-live-search="true">

                        <option value="">请选择</option>

                        <volist name="rooms" id="vo"  >
                            <optgroup label="{$vo.name}">

                                <volist name="vo[child]" id="v"  >

                                    <option value="{$v.id}"

                                            <if condition="$v['isru'] eq 0"> disabled</if>

                                    <if condition="$v['id'] eq $room_id"> disabled</if>

                                    >{$v.name}({$v.type|str_cut=###,1,''})</option>


                                </volist>
                            </optgroup>


                        </volist>
                    </select>

                </div>
            </div>

        </div>
        <div class="form-actions">
            <button class="btn btn-info ajax-post"   target-form="J_ajaxForm_tiaofang" type="submit"> 提交</button>
        </div>

        </div>
    </form>


    <block name="script">
        <script>

            //select筛选器
            $(".selectpicker").chosen({
                search_contains: true,
            });
        </script>

    </block>


